﻿using Dapper;
using MySqlConnector;
using System;

using (var conn = new MySqlConnection("server=127.0.0.1;database=mysql;uid=root;pwd=;charset='utf8';SslMode=None"))
{
    conn.Open();

    var rows = conn.Query("select 1");
    foreach (var row in rows)
    {
        Console.WriteLine($"{row}");
    }
}
Console.ReadKey();